<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<TestBat.Frontend.Controllers.ViewData.Login.IndexViewData>" %>

<asp:Content ContentPlaceHolderID="Header" runat="server">
	Authentication
</asp:Content>

<asp:Content ContentPlaceHolderID="MainContent" runat="server">

    <fieldset id="loginForm">
        <legend>Login form</legend>
        <% using (Html.BeginForm())
           { %>
                <% if (Model.LoginFailed)
                   { %>
                    <div id="loginFailure"><img alt="warning" src="<%=Url.Content("~/Styles/Icons/16x16/warning.png") %>" />Username or password incorrect!</div>
                <% } %> 
                <div class="field"><label for="username">Username:</label> <%= Html.TextBox("username")%></div>
                <div class="field"><label for="password">Password:</label> <%= Html.Password("password")%></div>
                <div class="field"><input type="submit" value="Login" /></div>
        
        <% } %>
    </fieldset>

</asp:Content>
